<?php
class Api extends Public_Controller{

	public function rooms()
	{
		$this->load->model('emp_room/room_m');
		$data = $this->room_m->get_all();
		$json = json_encode($data);//JSON_FORCE_OBJECT
		echo $json;exit;
		$this->template
			->set_layout(false)
			->set('data',$json)
			->build('api');
		
	}
	public function employees()
	{
		$this->load->model('emp_profile/profile_m');
		$data = $this->profile_m->get_all();
		return json_encode($data);//JSON_FORCE_OBJECT
	}

}